package com.wsd.smartcarwasher.service;

import com.wsd.smartcarwasher.dao.NoteReceiversDao;
import com.wsd.smartcarwasher.domain.NoteReceivers;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class NoteReceiversService {

    @Resource
    private NoteReceiversDao noteReceiversDao;

    public int addNoteReceivers(NoteReceivers receiver) {
        return noteReceiversDao.addReceivers(receiver);
    }

    public int updateNoteReceivers(NoteReceivers receiver) {
        return noteReceiversDao.updateReceivers(receiver);
    }

    public NoteReceivers queryReceivers(String level) {
        return noteReceiversDao.queryReceiversOfMachine(level);
    }

    public List<NoteReceivers> queryAllReceivers() {
        return noteReceiversDao.queryAllReceiversOfMachine();
    }
}
